@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
@endsection
@section('content')
<div class="forms">
	<div class=" form-grids row form-grids-right">
		<div class="widget-shadow " data-example-id="basic-forms"> 
			<div class="form-title">
				<h4>添加型号 :</h4>
			</div>
			<div class="form-body">
				<form action="/admin/module/store" method="post" class="form-horizontal">
					{{csrf_field()}}
					<div class="form-group">
						<label for="inputEmail3" class="col-sm-2 control-label">
							所属供应商 :
						</label>
						<div class="col-sm-6">
							<select name="su_id" id="selector1" class="form-control1">
								<option>请选择</option>
								@if(!null==$data)
									@foreach($data as $k => $v)
										<option value="{{$v['s_id']}}">{{$v['s_name']}}</option>
									@endforeach
								@endif
							</select>
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">
							设备类型 :
						</label>
						<div class="col-sm-6">
							<select name="type" id="selector1" class="form-control1">
								<option>请选择</option>
								@if($type != null)
									@foreach($type as $val)
										<option value="{{$val['id']}}">{{$val['type']}}</option>
									@endforeach
								@endif
							</select>
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">
							设备型号 :
						</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="model" id="inputPassword3" placeholder="设备型号">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">
							硬件版本 :
						</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="software" id="inputPassword3" placeholder="固件版本">
						</div>
					</div>
					<div class="form-group">
						<label for="inputPassword3" class="col-sm-2 control-label">
							软件版本 :
						</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" name="hardware" id="inputPassword3" placeholder="软件版本">
						</div>
					</div>
					<div class="col-sm-offset-2">
						<button type="submit" class="btn btn-default" style="margin-left: 0.38rem">提交</button>
					</div>
				</form> 
			</div>
		</div>
	</div>
</div>
@endsection